import request from '@/utils/request'
//轮播列表
export const getSildesListAPI = (data) => request('/api/admin/slides', 'get', data)
//轮播详情
export const getSildesInfoAPI = (slide) => request(`/api/admin/slides/${slide}`, 'get')
//添加轮播
export const addSildesAPI = (data) => request(`/api/admin/slides`, 'post', data)
//修改轮播
export const updateSildesAPI = (data, slide) => request(`/api/admin/slides/${slide}`, 'put', data)
//删除轮播
export const delSildesAPI = (slide) => request(`/api/admin/slides/${slide}`, 'DELETE')
//轮播排序
export const seqSildesAPI = (data, slide) =>
    request(`/api/admin/slides/${slide}/seq`, 'PATCH', data)
//轮播禁用
export const statusSildesAPI = (slide) => request(`/api/admin/slides/${slide}/status`, 'PATCH')
